import request from '@/utils/request_zc'

export function getProductModelingList({ keyword, page, limit }) {
  return request({
    url: '/product/model/list',
    method: 'get',
    params: {
      keyword,
      page,
      limit
    }
  })
}

export function editProductModeling(data) {
  return request({
    url: '/product/model/edit',
    method: 'post',
    data
  })
}

export function addProductModeling(data) {
  return request({
    url: '/product/model/add',
    method: 'post',
    data
  })
}

export function getMaterialCategoryList() {
  return request({
    url: '/material/category/list',
    method: 'get'
  })
}

export function getMaterialList({ pid }) {
  return request({
    url: '/material/list',
    method: 'get',
    params: {
      pid
    }
  })
}
